


//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
import 'package:json_annotation/json_annotation.dart';

part 'h5_search_good.g.dart';

@JsonSerializable(explicitToJson: true)
class BeanH5RequestPageGoods {

   int pageIndex=0;
   int pageSize=20;
  //商品
   String? fCode;
   String? sword;

  //规格
   List<String>? specIds;

   BeanH5RequestPageGoods({this.pageIndex=0, this.pageSize=20, this.fCode, this.sword, this.specIds}
      );


   //添加固定格式
   factory BeanH5RequestPageGoods.fromJson(Map<String, dynamic> json) => _$BeanH5RequestPageGoodsFromJson(json);
   Map<String, dynamic> toJson() => _$BeanH5RequestPageGoodsToJson(this);

}

@JsonSerializable(explicitToJson: true)
class ItemListResponse {
    String? msg;
    String? code;
    int PageIndex=0;
    int PageCount=20;
    int totalCount=0;
    List<Map<String, dynamic>>? items;

    ItemListResponse({this.msg, this.code, this.PageIndex=0, this.PageCount=20,
       this.totalCount=0, this.items});

    //添加固定格式
    factory ItemListResponse.fromJson(Map<String, dynamic> json) => _$ItemListResponseFromJson(json);
    Map<String, dynamic> toJson() => _$ItemListResponseToJson(this);

}